package com.proback.service;

import com.proback.dto.BookDataAddRequest;
import com.proback.dto.BookDataUpdateRequest;
import com.proback.entity.BookData;

import java.time.Year;
import java.time.YearMonth;
import java.util.List;

public interface BookDataService {
    void add(BookDataAddRequest request);
    List<BookData> listByUserId(Integer userId);
    void update(BookDataUpdateRequest request);
    void delete(Integer id);
    List<BookData> listByUserIdAndYear(Integer userId, Year year);

    List<BookData> listByUserIdAndYearMonth(Integer userId, YearMonth yearMonth);
}
